export const json2Str = (params) => {
    let arr = [];
    let str = '';
    if (typeof params == 'object') {
        for(let name in params) {
            // name=1
            arr.push(`${name}=${params[name]}`)
        }
        str = arr.join('&');
    }
    return str;
}